[PATCH 01/02] Kexec / Kdump: Use NOTE_ALIGN() instead of ALIGN()
authorIan Campbell <ian.campbell@xensource.com>
Mon, 4 Dec 2006 09:08:47 +0000 (09:08 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Mon, 4 Dec 2006 09:08:47 +0000 (09:08 +0000)
ALIGN() is already defined in xen/include/asm-ia64/config.h. This patch
renames ALIGN() to NOTE_ALIGN() to make the kexec code build on ia64.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
xen/include/xen/elfcore.h

index d578d0dd0b2865724e30e7ba9ebc53f03e7df7ab..75ce7c49ef9291281f2cc6a6e6c2160a14bfca50 100644 (file)
@@ -71,8 +71,8 @@ typedef struct
  *   That requires infrastructure. Let's not.
  */
 
-#define ALIGN(x, n) ((x + ((1 << n) - 1)) / (1 << n))
-#define PAD32(x) u32 pad_data[ALIGN(x, 2)]
+#define NOTE_ALIGN(x, n) ((x + ((1 << n) - 1)) / (1 << n))
+#define PAD32(x) u32 pad_data[NOTE_ALIGN(x, 2)]
 
 #define TYPEDEF_NOTE(type, strlen, desctype)    \
     typedef struct {                            \